 @extends('master')

@section('title')
Scool|Info
@endsection

@section('content')
 <!-- right-top -->
<div class="row"> 
  <!--col-md-12 start-->
  <div class="col-md-12">
    <div class="page-heading">
      <h1>订单详情</h1>
    </div>
  </div>
  <!--col-md-12 end--> 
</div>

<div class="row">

    <div class="col-md-6 box-info">
    <form  class="form-horizontal row-border" />
        <div class="form-group">
        <label class="col-sm-3 control-label">活动名称</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->activity_name;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">票子名称</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->ticket_name;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">订单ID</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->order_id;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">购买者</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->username;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">购买者邮箱</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->email;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">购买数量</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->count;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">支付方式</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->pay_type;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">总价</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->price;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">支付货币</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->currency;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">实际支付总价</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->real_price;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">实际支付货币</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo $data->real_currency;?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">下单时间<br />（洛杉矶时间）</label>
        <div class="col-sm-9" style="margin-top: 7px;"><?php echo date('Y-m-d H:i:s', $data->create_time);?></div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label">订单状态</label>
        <div class="col-sm-9" style="margin-top: 7px;">
            <?php if(0 == $data->status){echo '待支付';} elseif(1 == $data->status){echo '已支付';} else{echo '支付超时';} ?>
        </div>
        </div>
    </form>

    <div>
        <button type="button" class="btn btn-danger" id="return" onclick="javascript:returnList();">返回</button>
    </div>

    </div>

</div>

    

@endsection

@section('js')
{{--<script type="text/javascript"  src="/js/info/update.js"></script>--}}
<script>
function returnList()
{
    window.location.href='/order?id=<?php echo $data->activity_id;?>';
}
</script>
@endsection